]> git.r.bdr.sh - rbdr/super-polarity/blobdiff - Super Polarity/ActorFactory.cs
I think bullets come out now.
[rbdr/super-polarity] / Super Polarity / ActorFactory.cs
index 3e2f80bb1cdced76b049df22a2108044d85eb0e7..4ebbb4c44afdb96894f89b3f58c498d97621b8c5 100644 (file)
@@ -52,5 +52,18 @@ namespace SuperPolarity
         {
             ActorFactory.Game = game;
         }
+
+        internal static Bullet CreateBullet(Vector2 position, float angle)
+        {
+            Bullet bullet = new Bullet(Game);
+
+            bullet.Initialize(Game.Content.Load<Texture2D>("Graphics\\square"), position);
+
+            bullet.Angle = angle;
+
+            ActorManager.CheckIn(bullet);
+
+            return bullet;
+        }
     }
 }